package me.zhengjie.modules.quartz.service.dto;

import lombok.Data;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;

import java.io.Serializable;
import java.util.List;

@Data
public class RestTaskRequestConfig implements Serializable {
    /**
     * 请求的地址
     */
    private String url;

    /**
     * get/post
     */
        private HttpMethod method = HttpMethod.GET;

    /**
     * text/plain; charset=UTF-8
     */
    private String contentType = MediaType.APPLICATION_JSON_UTF8_VALUE;

    /**
     * application/json
     */
    private String accept = MediaType.APPLICATION_JSON_VALUE;

    /**
     * json等
     */
    private String params;

    /**
     * cookies
     */
    private List<String> cookies;


    private String tokenKey;

    private String tokenValue;

    /**
     * 年-1/日-5
     */
    private Integer calendarField = 5;

    /**
     * -2，-1，0，1，2
     */
    private Integer calendarValue = 0;

    /**
     * 起始页
     */
    private Integer startPage;

    /**
     * 条数
     */
    private Integer pageSize;
}
